package com.ym.livedemo.api

import retrofit2.http.GET
import retrofit2.http.Path


/**
 * Created by 赵杰 on 2020-02-07.
 */

interface ApiService {

    /**
     * 获取推流链接
     */
    @GET("live/anchor/push/url")
    suspend fun getLiveUrl(): BaseResultEntity<String>

    /**
     * 获取推流码
     */
    @GET("live/anchor/push/code")
    suspend fun getLiveCode(): BaseResultEntity<String>

    /**
     * 拉流地址
     * @param 拉流协议 0:原画 1:720p 2:480p 3:360p,可用值:0,1,2,3
     */
    @GET("live/anchor/pull/url/1/{resolve}")
    suspend fun getLivePullUrl(@Path("resolve") resolve: Int): BaseResultEntity<String>

}

